package lesson.c2.pkg;

public class Cls1 {
	public String pub_name;
	protected String pro_name;
	private String pri_name;
	String def_name;
	
	public Cls1(){
		this.pub_name = "Cls1::Public Name";
		this.pro_name = "Cls1::Protected Name";
		this.pri_name = "Cls1::Private Name";
		this.def_name = "Cls1::Default Name";
	}
	
	public void testPri(){
		//当前类访问private
		System.out.println(pri_name);
	}
}

